package jiachunlei.builder;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/12/6 20:58
 */
public class BuilderClient
{
    public static void main(String[] args)
    {
        Director director = new Director();
        ConcreteBuilder1 concreteBuilder1 = new ConcreteBuilder1();
        ConcreteBuilder2 concreteBuilder2 = new ConcreteBuilder2();
        director.construct(concreteBuilder1);
        Product p1 = concreteBuilder1.getResult();
        p1.show();
        director.construct(concreteBuilder2);
        Product p2 = concreteBuilder2.getResult();
        p2.show();
    }
}
